import request from '@/utils/request'

const api_name = '/eduservice/video'

export default {

  save(videoInfo) {
    return request({
      url: `${api_name}/save`,
      method: 'post',
      data: videoInfo
    })
  },

  getById(id) {
    return request({
      url: `${api_name}/${id}`,
      method: 'get'
    })
  },

  update(videoInfo) {
    return request({
      url: `${api_name}/update`,
      method: 'post',
      data: videoInfo
    })
  },

  deleteById(id) {
    return request({
      url: `${api_name}/${id}`,
      method: 'delete'
    })
  },

  //删除阿里云视频
  removeById(id) {
    return request({
      url: `/eduvod/vod/${id}`,
      method: 'delete'
    })
  }
}